/* ========== 1. 全局基础样式 Global ========== */
body {
    margin: 0;
    font-family: "微软雅黑", sans-serif;
    background: #f5f7fa;
}

/* ========== 2. 页面主容器 Main Layout ========== */
.main {
    max-width: 900px;
    margin: 48px auto 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px #e0e0e0;
    padding: 40px 38px 30px 38px;
    transition: box-shadow 0.3s;
}

/* ========== 3. 留言展示相关 Message List ========== */
.msg-list {
    margin-bottom: 40px;
}
.msg-title {
    font-size: 1.32em;
    color: #285bb7;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 2px;
}
.no-msg {
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-size: 1.1em;
}
.msg-item {
    border-bottom: 1.5px solid #e6e6e6;
    padding: 22px 0 18px 0;
    margin-bottom: 8px;
    background: #fff;
    transition: background 0.2s;
    border-radius: 8px;
}
.msg-item:hover {
    background: #f7faff;
}
.msg-meta {
    color: #888;
    font-size: 0.98em;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.msg-content {
    font-size: 1.13em;
    color: #222;
    margin-bottom: 7px;
    word-break: break-all;
    line-height: 1.7;
}
.msg-reply {
    background: #f0f5ff;
    border-left: 3px solid #4576f5;
    margin-top: 7px;
    padding: 12px 18px 12px 20px;
    border-radius: 5px;
    color: #2756a6;
    font-size: 1em;
    position: relative;
}
.msg-reply::before {
    /* content: "💬"; */
    position: absolute;
    left: -28px;
    top: 10px;
    font-size: 1.2em;
    color: #4576f5;
    opacity: 0.5;
}

/* ========== 4. 留言表单 Form ========== */
.form-title {
    font-size: 1.18em;
    color: #285bb7;
    margin: 30px 0 12px 0;
    text-align: center;
    letter-spacing: 1px;
}
.form-row {
    margin-bottom: 18px;
}
.form-row label {
    display: block;
    color: #444;
    margin-bottom: 4px;
    font-size: 1em;
}
.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 9px;
    font-size: 1em;
    background: #fafbff;
    transition: border 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
    border: 1.5px solid #285bb7;
    background: #fff;
    outline: none;
    box-shadow: 0 2px 6px #e8f0fe;
}
.form-row textarea {
    resize: vertical;
    height: 80px;
}
.form-submit {
    text-align: right;
}
.form-submit button {
    background: linear-gradient(90deg, #4576f5 60%, #3264e6 100%);
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
    border: none;
    padding: 10px 35px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 1.5px 4px #e3ebff;
}
.form-submit button:hover {
    background: #244cb1;
    box-shadow: 0 2px 10px #b0cafe44;
}
.form-submit button:active {
    background: #2041a7;
}

/* ========== 5. 提示信息/错误信息 Tips ========== */
.tip {
    color: #d94040;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: center;
}

/* ========== 6. 分页 Pagination ========== */
.pagination {
    margin: 30px 0 10px 0;
    text-align: center;
    user-select: none;
}
.pagination a, .pagination span {
    display: inline-block;
    min-width: 32px;
    margin: 0 3px;
    padding: 6px 14px;
    font-size: 1em;
    border-radius: 7px;
    text-decoration: none;
    color: #285bb7;
    background: #f3f7fd;
    border: 1px solid #e6eaf3;
    box-shadow: 0 1px 1.5px #f0f4fa;
    transition: background 0.18s, color 0.18s, border 0.18s;
    cursor: pointer;
}
.pagination span.current {
    font-weight: bold;
    color: #fff;
    background: #285bb7;
    border: 1.5px solid #285bb7;
    cursor: default;
}
.pagination a:hover:not(.current) {
    background: #e6f0ff;
    color: #12357a;
    border-color: #a8caff;
}

/* ========== 7. 顶部导航 header ========== */
.header {
    background: #fff;
    border-bottom: 1.5px solid #eee;
    padding: 18px 0 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px #f0f2f9;
}
.logo-img {
    height: 40px;
    width: 40px;
    margin-right: 16px;
    object-fit: contain;
}
.header-title {
    font-size: 1.45em;
    font-weight: 700;
    color: #222;
    letter-spacing: 1.5px;
}
.header-user {
    margin-right: 38px;
}
.admin-name {
    color: #285bb7;
    margin-right: 16px;
    font-size: 1.05em;
}
.logout-btn {
    color: #d94040;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.07em;
}
.logout-btn:hover {
    text-decoration: underline;
}

/* ========== 8. 侧边菜单 Side Menu ========== */
.side-menu {
    width: 172px;
    background: #f7f9fa;
    padding: 38px 0 0 0;
    min-height: calc(100vh - 60px);
    float: left;
    border-right: 1px solid #eee;
    box-shadow: 1px 0 4px #f0f0f0;
}
.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-menu li {
    margin-bottom: 20px;
}
.side-menu a {
    color: #285bb7;
    text-decoration: none;
    font-size: 1.09em;
    display: block;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: transparent;
    transition: background 0.13s, color 0.13s;
}
.side-menu a:hover,
.side-menu a.active {
    background: #e6eeff;
    color: #1b3166;
}

/* ========== 9. 底部版权区 Footer ========== */
footer {
    background: linear-gradient(90deg, #f5f8fd 60%, #eaeffa 100%);
    border-top: 1px solid #e4e7ee;
    padding: 20px 0 16px 0;
    text-align: center;
    color: #555;
    font-size: 1em;
    margin-top: 38px;
    box-shadow: 0 -2px 12px #f4f6fa;
    letter-spacing: 0.5px;
}
footer .copyright-main {
    font-weight: 600;
    color: #1d2e4f;
}
footer .footer-sub {
    color: #8c8c8c;
    font-size: 0.98em;
    margin-top: 5px;
    letter-spacing: 0.4px;
}
footer a {
    color: #3264e6;
    text-decoration: none;
    font-weight: 500;
}
footer a:hover {
    text-decoration: underline;
}

/* ========== 10. 响应式布局 Responsive ========== */
@media (max-width: 950px) {
    .main {
        max-width: 99vw;
        padding: 12px 2vw;
    }
    .logo-img { height: 32px; width: 32px; }
    .side-menu { width: 120px; padding-top: 20px; }
}
@media (max-width: 700px) {
    .main { padding: 6vw 2vw 6vw 2vw; }
    .msg-title, .form-title { font-size: 1em; }
    .side-menu { display: none; }
}
@media (max-width: 500px) {
    .main { padding: 2vw 2vw 4vw 2vw; }
    footer { font-size: 0.92em; }
}

/* ==== 结束 ==== */
